<?php
namespace App\Service;

use Swoole;

/**
 * Created by PhpStorm.
 * User: eric
 * Date: 4/22/16
 * Time: 6:26 PM
 */
class BaseService
{
    function __construct()
    {

    }

    public static function getInstance($reload = false)
    {
        return Swoole::getInstance()->instance_factory->getInstance(static::class, $reload);
    }

    public function getClassName()
    {
        return end(explode('\\', static::class));
    }
}